﻿using System.ComponentModel;

namespace FirstDemo.MyEnum
{
    enum StatusCode
    {
        /// <summary>
        /// 信息
        /// </summary>
        Continue = 100,
        SwitchingProtocols = 101,

        /// <summary>
        /// 成功
        /// </summary>
        [Description("操作成功")]
        OK = 200,
        Created = 201,
        Accepted = 202,
        NonAuthoritativeInformation = 203,
        NoContent = 204,
        ResetContent = 205,
        RartialContent = 206,

        /// <summary>
        /// 重定向
        /// </summary>
        MultipleChoices = 300,
        MovedPermanently = 301,
        Found = 302,
        SeeOther = 303,
        NotModified = 304,
        UseProxy = 305,
        Unused = 306,
        TemporaryRedirect = 307,

        /// <summary>
        /// 客户端错误
        /// </summary>
        BadRequest = 400,
        Unauthorized = 401,
        PaymentRequired = 402,
        Forbidden = 403,
        NotFound = 404,
        MethodNotAllowed = 405,
        NotAcceptable = 406,
        ProxyAuthenticationRequired = 407,
        RequestTimeout = 408,
        Conflict = 409,
        Gone = 410,
        LengthRequired = 411,
        PreconditionFailed = 412,
        RequestEntityTooLarge = 413,
        RequestURITooLarge = 414,
        UnsupportedMediaType = 415,
        Requestedrangenotsatisfiable = 416,
        ExpectationFailed = 417,

        /// <summary>
        /// 服务器错误
        /// </summary>
        InternalServerError = 500,
        NotImplemented = 501,
        BadGateway = 502,
        ServiceUnavailable = 503,
        GatewayTimeout = 504,
        HTTPVersionnotsupported = 505,
    }
}
